#ifndef CWORKER_H
#define CWORKER_H

#include <QObject>
#include "CBezier.h"

class CWorker : public QObject
{
    Q_OBJECT
public:
    explicit CWorker(QObject *parent = nullptr);

signals:

    void signalSendTwoOrderBezierPoint(QPoint);
    void signalSendThreeOrderBezierPoint(QPoint);

    void signalTwoOrderRollLine(QPoint, QPoint);
    void signalThreeOrderRollLine(QPoint, QPoint, QPoint, QPoint, QPoint, QPoint);

public slots:

    void slotCreateObjects();

    void slotFitting(quint8 order, QVector<QPoint> points);


private:

    CBezier * m_bezier = nullptr;

};

#endif // CWORKER_H
